#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>
#include"Contain.h"
void menu()
{
	printf("*********1.init       2.Add**********\n");
	printf("*********3.del        4.find*********\n");
	printf("*********5.sarch      6.tel**********\n");
	printf("*********0.exit       ***************\n");
}
enum Enit{
	 Intit=0,
     Add,
	 Del,
	 Find,
	 Qsort,
	 Draw,
};
int main()
{
	int input = 0;
	Contact s;


	do {
		menu();
		scanf("%d", &input);
		switch (input)
		{
		case Intit:
			initialize(&s);
			break;
		case Add:
			Contact_Add(&s);
			Contact_Draw(&s);
			break;
		case Del:

			Contact_Del(&s);
			Contact_Draw(&s);
			break;
		case Find:
			Contact_Find(&s);
			break;
		case Qsort:
			Contact_Qsort(&s);
			Contact_Draw(&s);
			break;
		case Draw:
			Contact_Draw(&s);
			break;
			
		default:
			Contact_Desty(&s);
			break;
		}
	} while (input);
	return 0;
}